--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Node / ReticulumProjects / MeshChatX.git / files / meshchatx / src / frontend / js / reticulumDocsNavigation.js
Displaying Raw • Download
meshchatx/src/frontend/js/reticulumDocsNavigation.js e5756d7ab065475a18acdcafc008a767fcff87e0 (e5756d7a) Text, 1.22 KB
Tff7b72import Tb4b4b4{ Te6edf3RETICULUM_MANUAL_INTERFACES_COMMON_OPTIONS_REL Tb4b4b4} Tff7b72from Ta5d6ff"./reticulumDocsEntryUrl.js"Tb4b4b4;
T8b949e/**
* Open the in-app documentation tool to a path under /reticulum-docs/.
* @param {import('vue-router').Router} router
* @param {string} [relPath] - path after /reticulum-docs/ (may include #fragment)
*/
Tff7b72export Tff7b72function Te6edf3openBundledReticulumManualPathTb4b4b4(Te6edf3routerTb4b4b4, Te6edf3relPath Tff7b72= Te6edf3RETICULUM_MANUAL_INTERFACES_COMMON_OPTIONS_RELTb4b4b4) Tb4b4b4{
Tff7b72return Te6edf3routerTb4b4b4.Te6edf3pushTb4b4b4(Tb4b4b4{
Te6edf3nameTff7b72: Ta5d6ff"documentation"Tb4b4b4,
Te6edf3queryTff7b72: Tb4b4b4{ Te6edf3reticulumTff7b72: Tffa657encodeURIComponentTb4b4b4(Te6edf3relPathTb4b4b4) Tb4b4b4}Tb4b4b4,
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tb4b4b4}
T8b949e/**
* Host-agnostic deep link for the bundled Reticulum manual (handled in App.vue
* `handleProtocolLink`). Use in LXMF, notifications, or when the browser base URL is unknown.
* @param {string} relPath - path under /reticulum-docs/ (e.g. `manual/interfaces.html#section`)
* @param {"meshchatx" | "meshchat"} [scheme=meshchatx]
* @returns {string} e.g. `meshchatx://docs?reticulum=manual%2Finterfaces.html`
*/
Tff7b72export Tff7b72function Te6edf3bundledReticulumManualDeepLinkTb4b4b4(Te6edf3relPathTb4b4b4, Te6edf3scheme Tff7b72= Ta5d6ff"meshchatx"Tb4b4b4) Tb4b4b4{
Tff7b72const Te6edf3s Tff7b72= Te6edf3scheme Tff7b72=== Ta5d6ff"meshchat" Tff7b72? Ta5d6ff"meshchat" Tff7b72: Ta5d6ff"meshchatx"Tb4b4b4;
Tff7b72const Te6edf3q Tff7b72= Tff7b72new Te6edf3URLSearchParamsTb4b4b4(Tb4b4b4)Tb4b4b4;
Te6edf3qTb4b4b4.Te6edf3setTb4b4b4(Ta5d6ff"reticulum"Tb4b4b4, Te6edf3relPathTb4b4b4)Tb4b4b4;
Tff7b72return Ta5d6ff`Tffd700${Te6edf3sTffd700}Ta5d6ff://docs?Tffd700${Te6edf3qTb4b4b4.Te6edf3toStringTb4b4b4(Tb4b4b4)Tffd700}Ta5d6ff`Tb4b4b4;
Tb4b4b4}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────